.login {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;

  .container {
    width: 80vw;
    height: 75vh;
    background-color: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }

    .bg {
      flex: 2;
      display: flex;
      justify-content: center;
      align-items: center;
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
      
      img {
        height: 65vh;
        transition: transform 0.3s ease;
        
        &:hover {
          transform: scale(1.02);
        }
      }
    }

    .board {
      flex: 1;
      display: flex;
      justify-content: center;
      flex-direction: column;
      padding: 0 60px;
      background-color: white;

      h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-align: center;
        position: relative;
        &::after {
          content: '';
          display: block;
          width: 60px;
          height: 3px;
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          margin: 1rem auto 0;
        }
      }

      .login-form {
        .ant-form-item {
          margin-bottom: 1.5rem;
        }

        .ant-input-affix-wrapper {
          padding: 12px;
          border-radius: 8px;
          border: 1px solid #e8e8e8;
          transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

          &:hover, &:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
          }

          .ant-input {
            font-size: 1rem;
          }
        }

        .login-form-forgot {
          color: #667eea;
          float: right;
          
          &:hover {
            color: #764ba2;
          }
        }

        .ant-btn {
          height: 45px;
          font-size: 1rem;
          border-radius: 8px;
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          border: none;
          position: relative;
          overflow: hidden;
          transition: all 0.3s ease;

          &::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
              120deg,
              transparent,
              rgba(255, 255, 255, 0.3),
              transparent
            );
            transition: all 0.8s;
          }

          &:hover::after {
            left: 100%;
          }
        }

        .ant-checkbox-wrapper {
          color: #666;
        }

        a {
          color: #667eea;
          
          &:hover {
            color: #764ba2;
          }
        }
      }
    }
  }

  // antd样式修改
  .ant-btn, .login-form-button {
    width: 100%;
  }
}

// 增加移动端适配
@media (max-width: 768px) {
  .login {
    .container {
      width: 90vw;
      height: auto;
      flex-direction: column;
      padding: 20px;

      .bg {
        display: none; // 移动端隐藏图片
      }

      .board {
        padding: 0 20px;
        
        h1 {
          font-size: 2rem;
          margin-bottom: 1.5rem;
        }
      }
    }
  }
}

// 增强视觉层次
.board {
  h1 {
    position: relative;
    &::after {
      content: '';
      display: block;
      width: 60px;
      height: 3px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      margin: 1rem auto 0;
    }
  }

  .login-form {
    // 增强输入框交互
    .ant-input-affix-wrapper {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      
      &:hover {
        transform: translateY(-2px);
      }
    }

    // 优化按钮动画
    .ant-btn {
      position: relative;
      overflow: hidden;
      
      &::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          120deg,
          transparent,
          rgba(255, 255, 255, 0.3),
          transparent
        );
        transition: all 0.8s;
      }

      &:hover::after {
        left: 100%;
      }
    }
  }
}